package blackeagle.ems.entities;

import blackeagle.ems.dal.DataList;

/**
 * A collection of games.
 */
public class GameCollection extends DataList<Game,GameCollection>{
    /**
     * The default 0-parameter constructor.
     */
    public GameCollection(){}
    
    @Override
    public Game getById(Integer id){
        Game retval = null;
        
        for(Game g : this){
            if(g.getId()==id){
                retval = g;
                break;
            }
        }
        
        return retval;
    }
}
